package com.mashibing.servicemap.service.impl;

import com.mashibing.servicemap.remote.ServiceClient;
import com.mashibing.servicemap.service.ServiceFromMapService;
import org.mashibing.dto.ResponseResult;
import org.mashibing.response.ServiceResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:
 * @create: 2024/7/2 10:00
 * @description:
 */
@Service
public class ServiceFromMapServiceImpl implements ServiceFromMapService {

    @Autowired
    private ServiceClient serviceClient;

    @Override
    public ResponseResult<ServiceResponse> add(String name) {
        return serviceClient.add(name);
    }
}
